<!-- 登录后开始向外登录 { -->
{% set member=request.state.login_member %}
<div id="member_signed_in" class="member_sign">

    <div class="sign_info">
        <h2>我的会员信息</h2>

        <a href="/bbs/member_confirm" class="profile_img">
            <img src="{{ get_member_image(request.state.login_member.mb_id)|safe }}" alt="">
            <span class="blind">信息更正</span>
        </a>

        <strong>{{ member.mb_nick if member is defined else '' }}亲爱的</strong>

        {% if request.state.is_super_admin %}
        <a href="/admin" class="btn_admin btn" title="经理">
            <i class="fa fa-cog fa-spin fa-fw"></i>
            <span class="blind">经理</span>
        </a>
        {% endif %}

        <div>
            <a href="/bbs/logout" class="info_link">在日志之外</a>
        </div>
    </div>

    <ul class="sign_menu">
        <li>
            <a href="/bbs/point" target="_blank" class="win_point">
                <span>
                    <i class="fa fa-database" aria-hidden="true"></i>
                    点
                </span>
                <strong>{{ member.mb_point|number_format if member else '' }}</strong>
            </a>
        </li>
        <li>
            <a href="{{ url_for('memo_list') }}" target="_blank" class="win_memo">
                <span>
                    <i class="fa fa-regular fa-envelope" aria-hidden="true"></i>
                    <span class="blind">未读取 </span>备注
                </span>
                <strong>{{ member.mb_memo_cnt if member is defined else '' }}</strong>
            </a>
        </li>
        <li>
            <a href="{{ url_for('scrap_list') }}" target="_blank" class="win_scrap">
                <span>
                    <i class="fa fa-thumb-tack" aria-hidden="true"></i>
                    废料
                </span>
                <strong class="scrap">{{ member.mb_scrap_cnt if member is defined else '' }}</strong>
            </a>
        </li>
    </ul>

</div>

<script>
// 在退出的情况下，您可以链接下面的代码.
function member_leave()
{
    if (confirm("你真的想离开会员资格吗?"))
        location.href = g6_url + "bbs/member_leave";
}
</script>
<!-- } 签到后，签出结束 -->